<template>
    <van-sticky>
        <van-nav-bar title="我的" left-text="返回" left-arrow @click-left="onClickLeft" />
    </van-sticky>
    <div class="tx">
        <van-image width="100" height="100" src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg" />
        <li>
            第二梦
        </li>
    </div>
    <van-tabs v-model:active="active">
        <van-tab title="订单">
            <li @click="t">我的订单</li>
        </van-tab>
        <van-tab title="钱包">内容 2</van-tab>
        <van-tab title="心愿单">内容 3</van-tab>
        <van-tab title="消息">内容 4</van-tab>
    </van-tabs>
</template>

<script setup>
import { useRouter } from 'vue-router';
const onClickLeft = () => history.back();
let router = new useRouter()
const t = () => {
    router.push('/dd')
}
</script>

<style>
.tx {
    margin-top: 50px;
    margin-left: 130px;
}

li {
    margin: auto;
    margin-left: 20px;
}

button {
    border: none;
}
</style>